
function choise_all() {
        for (var i = 1; i < 6; i++) {
            var id = "i" + i;
            var tid ="t" + i;
            var body = document.getElementById(id);
            var tbody =document.getElementById(tid);
            if(body.checked){
                 body.checked=false;
                 tbody.classList.remove("tab_color")

            }else {
                body.checked=true
                tbody.classList.add("tab_color")
            }
    }
    }
    function check_one(b) {
        var t = document.getElementById(b);
        var cc =t.classList
        if(cc.length==1){
            t.classList.add("tab_color")
        }else {
            t.classList.remove("tab_color")
        }
    }
    function tab_delete(a) {
        var tt =document.getElementById(a);
        tt.classList.add('tab_dis');

    }

    function delete_check() {
        for (var i = 1; i < 6; i++) {
            var id = "i" + i;
            var tid ="t" + i;
            var body = document.getElementById(id);
            var tbody =document.getElementById(tid);
            console.log(tbody);
            if(body.checked){
                 tbody.classList.add("tab_dis")
            }
    }
    }